dpkg-dev (>= 1.17.14),
python-dulwich <pkg.cargo.mkstage0>,
python-pytoml <pkg.cargo.mkstage0>,
+# TODO: related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839145
+# the non-native lines can be deleted after all versions in unstable are M-A: allowed
+ cargo (>= 0.17.0) <!pkg.cargo.mkstage0> |
cargo:native (>= 0.17.0) <!pkg.cargo.mkstage0>,
rustc:native (>= 1.16),
libstd-rust-dev (>= 1.16),
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS RUSTFLAGS
CARGO = RUST_BACKTRACE=1 cargo
-CARGOFLAGS = --release
+CARGOFLAGS = --release --target=$(DEB_HOST_RUST_TYPE)
# Cargo looks for config in and writes cache to $CARGO_HOME/
export CARGO_HOME = $(CURDIR)/debian/cargohome
# Ask cargo to be verbose when building